package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.AuditReturnPremium;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmy.cultivate.entity.OrderApply;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 退费申请 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-22
 */
public interface IAuditReturnPremiumService extends IService<AuditReturnPremium> {

    IPage<AuditReturnPremium> getAuditReturnPremiumList(IPage<?> page,
                                                        String yearPart,
                                                        String quarterNum,
                                                        String schoolId,
                                                        String subjectsId,
                                                        String startDate,
                                                        String endDate,
                                                        String studentName,
                                                        String returnType,
                                                        String status,
                                                        String adminId);

    AuditReturnPremium getAuditReturnPremiumDetails(Long id);


    @Transactional
    boolean updateReturnPremium(AuditReturnPremium auditReturnPremium, Long adminId) throws ParseException;
}
